<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>

<body class="gray-bg">
	<div class="container-div">
		<div class="row">
			<div class="col-sm-12 select-table table-striped">
				<table id="bootstrap-table" data-mobile-responsive="true"></table>
			</div>
		</div>
	</div>
	
	<footer th:replace="dashboard/footer :: footer"></footer>

	<script>

		$(function() {
		    var options = {
		        url: ctx+"portal/ucenter/contentType/datatables" ,
		        createUrl: ctx + 'portal/ucenter/contentType/add' ,
		        updateUrl: ctx+"portal/ucenter/contentType/modify?id={id}" ,
		        statusUrl: ctx+"portal/ucenter/contentType/changeStatus?id={id}" , 
		        detailUrl: ctx+"portal/ucenter/contentType/detail?id={id}",
		        removeUrl: ctx+"portal/ucenter/contentType/delete" ,
		        sortName: "operTime",
		        uniqueId:"id" ,
		        sortOrder: "desc",
		        modalName: "操作日志",
		        escape: true,
		        showPageGo: true,
		        rememberSelected: true,
		        columns: [{field: 'state',checkbox: true },
		        	
		        	 {field: 'applicationIdLabel', title: '应用名称'},
				     {field: 'typeName', title: '类型名称'},
					 {field: 'hasStatusLabel', title: '状态', align:'center',  formatter:function(value,row,index){ return $.table.status(value , row);}},
				     {field: 'addTime', title: '添加时间' , width:'200px'} ,
				     {field: 'id' , title: '操作',  align: 'center', width:'120px', formatter: function(value, row, index) {
			                var actions = [];
			                actions.push('<a class="btn btn-danger btn-xs" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a> ');
			                return actions.join('');
			          }
			     }]
		    };
		    $.table.init(options);
		});
		
		function editoSearch(){
			$.modal.alert("正在规划中.") ;
		}	
	</script>
</body>
</html>